package com.android.canvasproject.model.interfaces;

import java.util.List;
import java.util.Map;

import android.content.ContentValues;
import android.database.SQLException;

public interface ProviderInterface {
	
	public Integer save(String table, ContentValues values) throws SQLException;

	public int update(String table, ContentValues values, String whereClause, String[] args) throws SQLException;
	
	public int delete(String table, String whereClause, String[] whereArgs) throws SQLException;
	
	public Object findById(String table, String[] cols, long id) throws SQLException;
	
	public List<Map<String, Object>> findAll(String table, String[] cols) throws SQLException;
	
	public List<Map<String, Object>> findFilter(String table, String[] cols, String whereClause) throws SQLException;

}
